package com.example.friend.domain.dto;


import com.example.core.domain.PageDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class ExamDTO extends PageDomain {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "竞赛id")
    private Long examId;

    @Schema(description = "竞赛标题")
    private String title;

    @Schema(description = "竞赛状态 0： 未开始 1：历史竞赛")
    private Integer examStatus;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String qStartTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String qEndTime;
}
